home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 26.zip
/
BS1 part 26
/
C for beginners.adf
/
source
/
scan2.c
< prev
next >
Wrap
C/C++ Source or Header
|
1978-01-17
|
279b
|
15 lines
/* scan1.c section 4.5 */
void main()
{
int input;
printf ("Are you well?\n");
printf ("(1) = YES (2) = NO\n");
printf ("Number: ");
scanf ("%d",&input);
if (input == 1)
printf ("That is very good\n");
else
printf ("I am sorry to hear that\n");
}